<?php


namespace Beike\Admin\Http\Controllers;

use Beike\Models\Brand;
use Beike\Repositories\BrandRepo;
use Exception;
use Illuminate\Http\Request;
use Beike\Admin\Services\CategoryImport;
use Beike\Admin\Services\MenuImport;

class TestController extends Controller
{

    public function index(Request $request)
    {
        //$path = 'D:\work\free\pasaky\cate.csv';
        //CategoryImport::importCategories($path);

        $path = 'D:\work\free\pasaky\menus.csv';
        MenuImport::importMenu($path);

        exit('done');
    }
}